package personal.xjl._23java1studentdemo.service;


import personal.xjl._23java1studentdemo.model.Student;
import personal.xjl._23java1studentdemo.model.Teacher;

import java.util.List;

public interface TeacherService {
    List<Teacher> findAll();
    int remove(int id);

    int add(Teacher teacher);

    Teacher findById(int id);

    int edit(Teacher teacher);
    //分页查询
    List<Teacher> findByPage(int pageNo, int pageSize);

    boolean login(String username, String password);
}
